package com.hongning.railway.ui.main.mine.partcheck.itemviewmodel;

import android.databinding.ObservableField;
import android.support.annotation.NonNull;

import com.hongning.railway.entity.resbean.ResKaoHeBean;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.base.ItemViewModel;

public class CheckScoreItemViewModel extends ItemViewModel {
    public ObservableField<String> scoreString = new ObservableField<>();
    public ObservableField<String> name = new ObservableField<>();
    public CheckScoreItemViewModel(@NonNull BaseViewModel viewModel, ResKaoHeBean.DataBean dataBean)  {
        super(viewModel);
        name.set(dataBean.getName());
        scoreString.set(dataBean.getTotleScore()+"分");
    }
}
